package com.zhu.char05

/**
 *
 * @version 1.0
 * @author study
 * @date 2020/9/3 15:16
 *
 */
/**
 *  函数，将某个特殊功能的代码块
 *
 *  方法支持重载 和重写，但是函数不允许
 *
 */
object Scala01_Fun {

  def main(args: Array[String]): Unit = {
    val scala = sayHi("scala")
    println(scala)

  }

  def sayHi(name: String): String = {
    "hello " + name
  }
}
